﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using WebPic.Sample.Modelo.Entidades;

namespace WebPic.Sample.Modelo.Mappings
{
    internal class FornecedorMapping : EntityTypeConfiguration<Fornecedor>
    {
        public FornecedorMapping()
        {
            HasOptional(f => f.PlanoConta)
                .WithMany(p => p.Fornecedores)
                .HasForeignKey(f => f.IdPlanoConta);
        }
    }
}
